rpi-update
cat <<EOT > /etc/apt/sources.list
deb http://ftp.debian.org/debian wheezy main contrib non-free
deb http://archive.mene.za.net/raspbian wheezy contrib
EOT
apt-key adv --keyserver keyserver.ubuntu.com --recv-key 5243CDED
apt-get update
apt-get -y install kodi
cat <<EOT > /etc/apt/sources.list
deb http://ftp.debian.org/debian wheezy main contrib non-free
#deb http://archive.mene.za.net/raspbian wheezy contrib
EOT
apt-get update
#manque le dossier vc
ln -fs /opt/vc/lib/libEGL.so /usr/lib/libEGL.so
ln -fs /opt/vc/lib/libEGL.so /usr/lib/arm-linux-gnueabihf/libEGL.so
ln -fs /opt/vc/lib/libEGL.so /usr/lib/arm-linux-gnueabihf/libEGL.so.1
ln -fs /opt/vc/lib/libEGL_static.a /usr/lib/libEGL_static.a
ln -fs /opt/vc/lib/libEGL_static.a /usr/lib/arm-linux-gnueabihf/libEGL_static.a
ln -fs /opt/vc/lib/libGLESv2.so /usr/lib/libGLESv2.so
ln -fs /opt/vc/lib/libGLESv2.so /usr/lib/arm-linux-gnueabihf/libGLESv2.so
ln -fs /opt/vc/lib/libGLESv2.so /usr/lib/arm-linux-gnueabihf/libGLESv2.so.2
ln -fs /opt/vc/lib/libGLESv2_static.a /usr/lib/libGLESv2_static.a
ln -fs /opt/vc/lib/libGLESv2_static.a /usr/lib/arm-linux-gnueabihf/libGLESv2_static.a
ln -fs /opt/vc/lib/libbcm_host.so /usr/lib/libbcm_host.so
ln -fs /opt/vc/lib/libbcm_host.so /usr/lib/arm-linux-gnueabihf/libbcm_host.so
ln -fs /opt/vc/lib/libvchiq_arm.a /usr/lib/libvchiq_arm.a
ln -fs /opt/vc/lib/libvchiq_arm.a /usr/lib/arm-linux-gnueabihf/libvchiq_arm.a
ln -fs /opt/vc/lib/libvchiq_arm.so /usr/lib/libvchiq_arm.so
ln -fs /opt/vc/lib/libvchiq_arm.so /usr/lib/arm-linux-gnueabihf/libvchiq_arm.so
ln -fs /opt/vc/lib/libvcos.a /usr/lib/libvcos.a
ln -fs /opt/vc/lib/libvcos.a /usr/lib/arm-linux-gnueabihf/libvcos.a
ln -fs /opt/vc/lib/libvcos.so /usr/lib/libvcos.so
ln -fs /opt/vc/lib/libvcos.so /usr/lib/arm-linux-gnueabihf/libvcos.so
ln -fs /opt/vc/lib/libmmal.so /lib/arm-linux-gnueabihf/libmmal.so
ln -fs /opt/vc/lib/libmmal_core.so /lib/arm-linux-gnueabihf/libmmal_core.so
ln -fs /opt/vc/lib/libmmal_util.so /lib/arm-linux-gnueabihf/libmmal_util.so
ln -fs /opt/vc/lib/libmmal_vc_client.so /lib/arm-linux-gnueabihf/libmmal_vc_client.so
ln -fs /opt/vc/lib/libmmal_components.so /lib/arm-linux-gnueabihf/libmmal_components.so
ln -fs /opt/vc/lib/libcontainers.so /lib/arm-linux-gnueabihf/libcontainers.so
ln -fs /opt/vc/lib/libopenmaxil.so /lib/arm-linux-gnueabihf/libopenmaxil.so
ldconfig
#wget -q -O - http://razberry.z-wave.me/install | bash 